package cn.com.duiba.millionaire.center.biz.dao;

import cn.com.duiba.millionaire.center.biz.entity.MillionaireRenascenceRecordEntity;

import java.util.List;

/**
 * Created by sty on 1/18/18.
 */
public interface MillionaireRenascenceRecordDao {
    /**
     * 插入
     * @param millionaireRenascenceRecordEntity
     * @return
     */
    MillionaireRenascenceRecordEntity insert(MillionaireRenascenceRecordEntity millionaireRenascenceRecordEntity);


    /**
     * 更新
     * @param millionaireRenascenceRecordEntity
     * @return
     */
    int updateById(MillionaireRenascenceRecordEntity millionaireRenascenceRecordEntity);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    MillionaireRenascenceRecordEntity findById(Long id);

    /**
     * 批量插入
     * @param records
     * @return
     */
    int batchInsert(List<MillionaireRenascenceRecordEntity> records);
}
